package com.njworkorder.DTO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class InsuranceRegistrationAddDto {

    @Schema(description = "保险名称")
    private String insuranceName;

    @Schema(description = "投保单号")
    private String policyNumber;

    @Schema(description = "保险费用")
    private BigDecimal insuranceCosts;

    @Schema(description = "保险公司")
    private String insuranceCompany;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "保险购买日期")
    private Date insurancePurchaseDate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "保险到期日期")
    private Date insuranceExpirationDate;

    @Schema(description = "附件")
    private String appendixes;
}
